<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META http-equiv="X-UA-Compatible" content="IE=9" > </META> 
<link rel="shortcut icon" href="${ctx}/style/images/index/favicon.png" />
<script type="text/javascript" src="${ctx}/jslib/My97DatePicker/WdatePicker.js" charset="utf-8"></script>
<script type="text/ecmascript" src="${ctx}/jslib/jqGrid5.1.1/js/jquery-1.11.0.min.js"></script>
<script type="text/ecmascript" src="${ctx}/jslib/jqGrid5.1.1/js/i18n/grid.locale-cn.js"></script>
<script type="text/ecmascript" src="${ctx}/jslib/jqGrid5.1.1/js/jquery.jqGrid.min.js"></script>
<link rel="stylesheet" href="${ctx}/jslib/bootstrap-3.3.5/css/bootstrap.min.css"> 
<link rel="stylesheet" type="text/css" href="${ctx}/jslib/jqGrid5.1.1/css/ui.jqgrid-bootstrap.css" />
<script src="${ctx}/jslib/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<script>
	$.jgrid.defaults.responsive = true;
	$.jgrid.defaults.styleUI = 'Bootstrap';
</script>
<script type="text/javascript" src="${ctx}/jslib/biz/commonConverter.js" charset="utf-8"></script>
<link rel="stylesheet" href="${ctx}/style/lightmvc.css" type="text/css">
<script type="text/javascript">

//公共方法
var pubMethod = {
    bind: function (control,code) {
        if (control == ''|| code == '')
        {
            return;
        }
		
        $('#'+ control).combobox({
            url: '${ctx}/dictionary/combox?code=' + code,
            method: 'get',
            valueField: 'id',
            textField: 'text',
            editable: false,
            panelHeight: 'auto',
            required:true
        });
    }
}
</script>
